#ifndef MESSAGING_H_
#define MESSAGING_H_
#include <stdint.h>

typedef enum 
{
   COMMAND_STRING0,   //check "cmd: "
   COMMAND_STRING1,   //check beginning character of command/request
   DOOR_COMMAND,
   STATUS_REQUEST  
} MessageState_e;

typedef enum
{
   RET_STATUS_CLOSED = 2,
   RET_STATUS_OPEN = 1,
   RET_ERR_NONE = 0,
   RET_ERR_UNKNOWN = -1
} MessageReturn_e;

int ProcessByte(char data);

#define GARAGE_SWITCH_PIN 0x08

#endif //MESSAGING_H_
